package com.hexinfo.dmpro.dev.data.transfer.model.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class DevDataExportCustomList extends ExcelVerifyInfo {

    @Excel(name = "库名")
    @NotBlank(message = "        [库名]不能为空")
    @Pattern(regexp = "^[0-9A-Za-z_]+$", message = "        [库名]只能输入大小写英文字母和下划线")
    @Size(max = 100, message = "        [任务编码]长度不能大于100位")
    private String dbName;

    @Excel(name = "表名")
    @NotBlank(message = "        [表名]不能为空")
    @Pattern(regexp = "^[0-9A-Za-z_]+$", message = "        [表名]只能输入大小写英文字母和下划线")
    @Size(max = 100, message = "        [任务名称]长度不能大于100位")
    private String tableName;

    @Excel(name = "自定义查询条件")
    @NotBlank(message = "        [自定义查询条件]不能为空")
    private String customWhere;
}
